package com.tea.Model.dto;

import com.tea.Model.GoodsSpec;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsUpdateDTO {
    @NotNull(message = "商品编号不可为空")
    private Long id;
    //商品名称
    private String name;
    //描述
    private String description;
    //所属分类
    private String categoryId;
    //上架状态
    private String status;
    //图片地址
    private List<String> otherImages;
    //封面图地址
    private String coverImage;
    //规格列表
    private List<GoodsSpec> specList;
}
